﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLogin.ascx.cs" Inherits="Admin72H.Controls.Login.UCLogin" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<script type="text/javascript">
    function resetLogin() {        
        document.getElementById("<%=name.ClientID %>").value="";
        document.getElementById("<%=password.ClientID %>").value = "";
        return false;
    }
</script>
 <telerik:radwindowmanager ID="RadWindowManager1" runat="server" 
    Skin="Outlook">
 </telerik:radwindowmanager>
 <telerik:radajaxmanager ID="RadAjaxManager1" runat="server">     
 </telerik:radajaxmanager>
<asp:UpdatePanel runat="server" ID="udpOTPassword" RenderMode="Inline" UpdateMode="Conditional">
    <ContentTemplate>
        <table border="0" align="center" cellpadding="5" cellspacing="0">
            <tr>
                <td>
                    <table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td valign="top" class="bgr_form_login">
                                <table width="94%" border="0" align="center" cellpadding="8" cellspacing="0">
                                    <tr>
                                        <td valign="top" class="text_title_login">
                                            <asp:Label runat="server" ID="Label14" Text="Đăng nhập"></asp:Label>
                                        </td>
                                        <td align="right" valign="top" class="text_subtitle_login">
                                        </td>
                                    </tr>
                                </table>
                                <table width="95%" border="0" align="center" cellpadding="4" cellspacing="0">
                                    <tr>
                                        <td align="center" valign="top" class="style2">
                                            <img src="images/ima_lock.gif" width="45" height="89" />
                                        </td>
                                        <td rowspan="2" valign="top">
                                            <br />
                                            <table width="70%" border="0" align="center" cellpadding="2" cellspacing="0">
                                                <tr>
                                                    <td style="color: Red" align="left" colspan="3">
                                                        <asp:Label runat="server" ID="error" Text="" Visible="false"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td nowrap="nowrap" colspan="2">
                                                        <span id="ctl00_MainContent_LoginForm1_Label2"><strong>
                                                            <asp:Label runat="server" ID="lblName" Text="Tên đăng nhập"></asp:Label>
                                                        </strong></span>
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="name" CssClass="textInput" Width="150px"></asp:TextBox><asp:RequiredFieldValidator
                                                            ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" ControlToValidate="name" ValidationGroup="Login" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>                                                
                                                <tr>
                                                    <td colspan="2">
                                                        <span id="ctl00_MainContent_LoginForm1_Label3"><strong>
                                                            <asp:Label runat="server" ID="lblpassword" Text="Mật khẩu"></asp:Label>
                                                        </strong></span>
                                                    </td>                                                   
                                                    <td align="left">
                                                        <asp:TextBox TextMode="Password" runat="server" ID="password" Width="150px" CssClass="textInput"></asp:TextBox><asp:RequiredFieldValidator
                                                            ID="RequiredFieldValidator2" runat="server" SetFocusOnError="true" ControlToValidate="password" ValidationGroup="Login" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td >
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td align="left" valign="middle" >
                                                    <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập"
                                                         CssClass="Button" OnClick="login_OnClick" ValidationGroup="Login">
                                                     </asp:Button>&nbsp;&nbsp;
                                                         <asp:Button runat="server" CssClass="Button" ID="btnReset" Text="Làm lại" OnClientClick="return resetLogin();">
                                                         </asp:Button>                                
                                                    </td>
                                                </tr>
                                                <tr>
                                                        <td >
                                                            &nbsp;
                                                        </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td align="center" valign="middle" nowrap="nowrap">
                                                        <asp:UpdateProgress ID="UpdateProgress2" runat="server" DisplayAfter="10" DynamicLayout="false">
                                                            <ProgressTemplate>
                                                                <span>
                                                                   <asp:Image alt="" ID="imgLoading" ImageUrl="~/images/loader2.gif" runat="server" /></span>
                                                            </ProgressTemplate>
                                                        </asp:UpdateProgress>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
